#ifndef SPI_SD_H
#define SPI_SD_H

#include "types.h"

extern u8 SD_WriteSingleBlock(u32 sector, const u8 *data);
extern u8 SD_WriteMultiBlock(u32 sector, const u8 *data, u8 count);
extern u8 SD_ReadSingleBlock(u32 sector, u8 *buffer);
extern u8 SD_ReadMultiBlock(u32 sector, u8 *buffer, u8 count);
extern u8 SPI_SD_Init(void);
extern u32 SD_GetSectorCount(void);



#endif
